package com.demo;

/**
 * Created by hushiwei on 2016/9/3.
 */
public class IndexController extends com.jfinal.core.Controller {
    public void index(){
        this.render("/index.jsp");
    }

    public void sayHello(){
        String userName = this.getPara("userName");
        String sayHello = "Hello " + userName + "，welcome to JFinal world.";
        this.setAttr("sayHello", sayHello);
        this.render("/hello.jsp");
    }
}
